<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>龙蛙</title>
    <meta name="keywords" content="龙蛙商城">
    <meta name="description" content="龙蛙商城">

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <form id="ajaxform" class="form-horizontal" role="form">
                    <input type="hidden" name="id" id="id" th:value="${dinnerDish.id}">

                    <div class="form-group">
                        <label class="col-sm-2 control-label">编号：</label>
                        <div class="col-sm-10">
                            <input th:value="${dinnerDish.companyId}" readonly type="text" name="companyId"
                                   class="form-control" required="" aria-required="true" maxlength="10"
                                   minlength="1">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称：</label>
                        <div class="col-sm-10">
                            <input th:value="${dinnerDish.name}" type="text" name="name" class="form-control"
                                   required="" aria-required="true" maxlength="10" minlength="1">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">价格：</label>
                        <div class="col-sm-10">
                            <input th:value="${dinnerDish.priceYuan}" type="text" name="price"
                                   class="form-control number" required="" aria-required="true" maxlength="10"
                                   minlength="1">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注：</label>
                        <div class="col-sm-10">
                            <input th:value="${dinnerDish.remark}" type="text" name="remark" class="form-control"
                                   required="" aria-required="true" maxlength="10" minlength="1">
                        </div>
                    </div>
                    <div class="form-group">
                        <input th:value="${dinnerTagId}" type="hidden" id="dinnerTagId" class="form-control">
                        <label class="col-sm-2 control-label">菜品分类：</label>
                        <div  class="col-sm-10" id="dishTags">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">图片路径：</label>
                        <div class="col-sm-10">
                            <input th:value="${dinnerDish.imgUrl}" type="text" name="imgUrl" id="imgUrl"
                                   class="form-control" value="" required="" aria-required="true" maxlength="100"
                                   minlength="1">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"> </label>
                        <div class="col-sm-10">
                            <small class="text-navy">图片尺寸：573×250</small>
                        </div>
                    </div>
                </form>
                <form enctype="multipart/form-data" id="uploadForm"
                      class="form-horizontal" role="form">
                    <input type="hidden" name="action" value="uploadimage">
                    <div class="form-group">
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-4" style="text-align: right; margin: 0 auto;">
                            <input id="file_temporaryImage" type="file"
                                   name="file_temporaryImage"/>
                        </div>
                        <div class="col-sm-6">
                            <input id="btn_temporary" type="button" value="上传菜品图片"/>
                        </div>
                    </div>
                    <br/>
                </form>
                <div class="form-group">
                    <label class="col-sm-2 control-label">图片：</label>
                    <div class="col-sm-10" id="div_temporaryImage">
                        <img style="width:300px;height:300px;" th:src="${dinnerDish.imgUrl}"/>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <div class="col-sm-3"></div>
                    <button id="submitForSave" class="btn btn-primary col-sm-1">保存</button>
                    <div class="col-sm-2"></div>
                    <button type="reset" class="btn btn-primary col-sm-1">重置</button>
                    <div class="col-sm-2"></div>
                    <button id="buttonGoback" class="btn btn-primary col-sm-1">返回</button>
                    <div class="col-sm-3"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/jquery.form.js?v=3.51"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script th:inline="javascript" src="/web/js/self/dinner_dish_update.js?v=1.0"></script>

</body>
</html>
